@extends('plugin.layout.base')
@section('add_css')

@endsection
@section('content')


    <div class="layui-col-md12">
        <div class="layui-card">

            <div class="layui-card-body">
                <div class="layui-form layui-form-kongqi" lay-filter="">

                    <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
                        <ul class="layui-tab-title">

                            <li class="layui-this">所有服务器</li>
                            <li class="">域名搜索页面</li>


                        </ul>

                        <div class="layui-tab-content">
                            <div class="layui-tab-item layui-show">
                                @include('plugin.tpl.form.text',[
                                   'data'=>[
                                             'name'=>'server_seo_title',
                                             'title'=>'所有服务器标题',
                                             'tips'=>'',
                                             'value'=>$server_seo_title?? '',
                                             'rq'=>''
                                 ]])
                                @include('plugin.tpl.form.textarea',[
                                  'data'=>[
                                            'name'=>'server_seo_key',
                                            'title'=>'所有服务器关键词',
                                            'tips'=>'',
                                            'value'=>$server_seo_key?? '',
                                            'rq'=>''
                                ]])
                                @include('plugin.tpl.form.textarea',[
                                  'data'=>[
                                            'name'=>'server_seo_desc',
                                            'title'=>'所有服务器描述',
                                            'tips'=>'',
                                            'value'=>$server_seo_desc?? '',
                                            'rq'=>''
                                ]])


                            </div>
                            <div class="layui-tab-item ">
                                @include('plugin.tpl.form.text',[
                                   'data'=>[
                                             'name'=>'domain_seo_title',
                                             'title'=>'域名搜索标题',
                                             'tips'=>'',
                                             'value'=>$domain_seo_title?? '',
                                             'rq'=>''
                                 ]])
                                @include('plugin.tpl.form.textarea',[
                                  'data'=>[
                                            'name'=>'domain_seo_key',
                                            'title'=>'域名搜索关键词',
                                            'tips'=>'',
                                            'value'=>$domain_seo_key?? '',
                                            'rq'=>''
                                ]])
                                @include('plugin.tpl.form.textarea',[
                                  'data'=>[
                                            'name'=>'domain_seo_desc',
                                            'title'=>'域名搜索描述',
                                            'tips'=>'',
                                            'value'=>$domain_seo_desc?? '',
                                            'rq'=>''
                                ]])


                            </div>


                        </div>
                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <button class="layui-btn" lay-submit="" lay-filter="config">确认保存</button>
                            </div>
                        </div>
                    </div>
                </div>


            </div>
        </div>
    </div>


@endsection
@section('foot_js')
    <script>
        layui.use(['index', 'form'], function () {
            var $ = layui.$
                , jquery = $
                , form = layui.form

            form.on('submit(config)', function (obj) {
                //提交修改
                $.ajax({
                    url: '{{ action($controller.'@store') }}'
                    , method: 'post'
                    , data: obj.field
                    , success: function (res) {
                        layer.msg(res.msg);
                    }
                });

                return false;
            });


        });
    </script>

@endsection